<template>
    <div class="bc-container">
        <el-breadcrumb separator="/">
            <el-breadcrumb-item :to="{ path: '/AIAnalysis' }">AI智能分析</el-breadcrumb-item>
            <el-breadcrumb-item class="bc-item">选择报告类型</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
    <div class="report-type">
        <div class="report-header">
            <h3>选择报告类型</h3>
            <span>AI大模型算法赋能，高效分析招商项目价值</span>
        </div>
        <div class="type-list">
            <div class="item" v-for="(item, index) in list" :key="index">
                <div class="item-header">
                    <img :src="item.icon" alt="">
                    <h3>{{ item.title }}</h3>
                </div>
                <div class="item-body">
                    <ul>
                        <li :class="{ 'liRow': item.content.length <= 4 }" v-for="(childItem,childIndex) in item.content" :key="childIndex">{{ childItem }}</li>
                    </ul>
                </div>
                <div class="item-footer">
                    <div class="btn" @click="onCheck(index+1)">行业分析预览</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { ref, reactive } from "vue"
import { useRouter } from "vue-router"
import AI1 from "../../assets/images/ai-1.png"
import AI2 from "../../assets/images/ai-2.png"
import AI3 from "../../assets/images/ai-3.png"

const router = useRouter()

const list = [
    {
        icon:AI1,
        title: "行业智能研判",
        content: ["行业概括分析", "产业链上中下游分析", "产业市场规模分析", "发展趋势分析", "投资决策建议", "代表企业分析", "行业政策分析", "技术创新分析", "技术创新分析"]
    },
    {
        icon:AI2,
        title: "企业竞争力分析",
        content: ["企业基本信息", "主营产品/服务", "所在行业竞争格局", "企业产品竞争力", "企业创新能力", "企业标准制定"]
    },
    {
        icon:AI3,
        title: "产业市场规模分析",
        content: ["产品应用领域", "产品市场规模", "产品市场驱动因素", "产品未来市场空间"]
    }
]

const onCheck = (id) =>{
    router.push(`/ReportCheck/${id}`)
}

</script>

<style lang="less" scoped>
.report-type {
    padding: 20px 50px;
    background: #fff;
    height:calc(100vh - 150px);
    // box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    .report-header {
        h3 {
            font-size: 28px;
            color: #373737;
        }

        span {
            display: block;
            font-size: 16px;
            margin: 15px 0;
        }
    }

    .type-list {
        margin: 50px 0;
        display: flex;

        .item {
            flex: 1;
            text-align: center;
            margin-right: 40px;
            box-shadow: 0px 3px 6px 0px rgba(72, 94, 132, 0.2);
            display: flex;
            flex-direction: column;
            .item-header {
                background: url("../../assets/images/AIAnalysis/rt-bg.png") no-repeat;
                background-size: cover;

                img {
                    width: 40px;
                    height: 40px;
                    padding: 10px 0;
                }

                h3 {
                    font-size: 20px;
                    color: #000000;
                    padding: 10px 0;
                }
            }

            .item-body {
                background-color: #f7f9ff;
                flex:1;
                ul {
                    overflow: hidden;
                    clear: both;
                    padding: 30px 20px;

                    li {
                        // width: 100%;
                        float: left;
                        width: 50%;
                        height: 40px;
                        line-height: 40px;
                        font-size: 16px;
                        color: #000000;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        word-break: break-all;
                        white-space: nowrap;
                    }

                    .liRow {
                        width: 100%;
                        float: none;
                    }
                }
            }
            .item-footer{
                background: #fff;
                padding: 30px 0;
                display: flex;
                justify-content: center;
                align-items: center;
                .btn{
                    background-color: #536EF7;
                    color: #fff;
                    width: 160px;
                    height: 40px;
                    line-height: 40px;  
                    cursor: pointer;
                    border-radius: 5px;
                }
            }
        }

        .item:last-child {
            margin-right: 0;
        }
    }
}</style>